import request from '@/utils/request'

// 用户注册
export function registerUser(data = {}) {
  return request({
    url: '/apid/member/createMember',
    method: 'post',
    data
  })
}

// 用户登录
export function loginUser(data = {}) {
  return request({
    url: '/apid/member/login',
    method: 'post',
    data
  })
}

// 修改用户资料
export function updateMember(data = {}) {
  return request({
    url: '/apid/member/updateMember',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getUserInfo(params = {}) {
  return request({
    url: '/apid/member/getUserInfo',
    method: 'get',
    params
  })
}

// 修改密码
export function updatePassword(data = {}) {
  return request({
    url: '/apid/member/updatePassword',
    method: 'post',
    data
  })
}

// 反馈
export function userfeedback(data = {}) {
  return request({
    url: '/apid/member/userfeedback',
    method: 'post',
    data
  })
}

